;
(function() {
	module.exports = function(host) {

		var appConfig = AppConfigPub(host);
		// console.log("appConfig.img_server_url:", appConfig.img_server_url);

		// var server_url = appConfig.server_url = location.host.indexOf("dotnar.com")!==-1?"http://api.dotnar.com/":"http://"+location.hostname+":3000/";//dev.dotnar.com:3000
		var server_url = appConfig.server_url;

		//针对的用户API-URL
		var user = appConfig.user || (appConfig.user = {});
		user.loginer = server_url + "user";
		user.sign_in_url = server_url + "user/login";
		user.login_out_url = server_url + "user/loginout";
		user.sign_in_img_code_url = server_url + "user/loginCode";
		user.sign_up_url = server_url + "user/register";
		user.register_code = server_url + "user/registerCode";
		user.register_code_with_image_code = server_url + "user/registerCodeWithImageCode/";
		user.registerCheckedMobilePhone = server_url + "user/registerCheckedMobilePhone/";
		user.registerCheckedEmail = server_url + "user/registerCheckedEmail/";
		user.set_info_url = server_url + "user/info";
		user.change_password = server_url + "user/password";
		user.bind_weixin_account_by_open_id = server_url + "user/bind_weixin_account_by_open_id";

		//针对用户收货地址API
		user.address = server_url + "user/address";
		user.address_detail = server_url + "user/address/detail";
		user.add_address = server_url + "user/address";
		user.remove_address = server_url + "user/address";
		user.set_default_address = server_url + "user/address/default";

		//针对用户·评价API
		user.evaluation = server_url + "user/eval";
		user.evaluation_with_page_info = server_url + "user/eval/with_page_info";
		// user.can_eval = server_url + "user/eval/canEvalutionAble/";
		// user.add_eval = server_url + "user/eval/as_eval/";
		user.add_comment = server_url + "user/eval/as_comment";

		//针对用户·购物车的API
		user.cart = server_url + "user/cart";
		user.get_cart_detail = server_url + "user/cart/detail";
		user.get_cart_detail_by_bus_id = server_url + "user/cart/getByBus";
		user.cart_make_ach = server_url + "user/cart/makeAch";
		user.goods_make_ach = server_url + "user/cart/makeAchFromGoods";
		user.cart_get_cash = server_url + "user/cart/getCash";
		user.remove_goods_from_cart = server_url + "user/cart/remove_goods";
		user.remove_cart = server_url + "user/cart";
		user.update_goods_num_in_cart = server_url + "user/cart/updateGoodsNum";

		//针对用户·订单的API
		user.achs = server_url + "user/achs";
		user.achs_detail = server_url + "user/achs/detail";
		user.achs_with_type_and_page_info = server_url + "user/achs/with_type_and_page_info";
		user.achs_with_page_info = server_url + "user/achs/with_page_info";
		user.ach_by_id = server_url + "user/achs/id/";
		user.ach_by_id_with_eval = server_url + "user/achs/with_eval/id/";
		user.ach_lock = server_url + "user/achs/lock_ach/";
		user.ach_cancel = server_url + "user/achs/cancel_ach/";
		user.ach_change_pay_method = server_url + "user/achs/change_pay_method/";
		user.ach_change_user_address = server_url + "user/achs/change_user_address/";
		user.ach_bind_coupon = server_url + "user/achs/bind_coupon";
		user.ach_bind_ticket = server_url + "user/achs/bind_ticket";
		user.ach_bind_acc = server_url + "user/achs/bind_acc";
		user.ach_use_bususer_money = server_url + "user/achs/use_bususer_money";
		user.ach_ol未收货_to_ol交易完成 = server_url + "user/achs/status/ol未收货_to_ol交易完成/"; //确认收货
		user.ach_已发货_to_未收货未付款 = server_url + "user/achs/status/已发货_to_未收货未付款/";
		user.ach_ol交易完成_to_ol已评价 = server_url + "user/achs/status/ol交易完成_to_ol已评价/";
		user.ach_交易完成_to_已评价 = server_url + "user/achs/status/交易完成_to_已评价/";
		user.ach_face交易完成_to_face已评价 = server_url + "user/achs/status/face交易完成_to_face已评价/";
		user.ach_change_use_space = server_url + "user/achs/change_use_space/";
		user.ach_change_space = server_url + "user/achs/change_space/";

		//针对用户·收藏商品API
		user.collect = server_url + "user/collect";
		user.collect_by_bus_id = server_url + "user/collect/by_bus_id/";
		user.collect_detail = server_url + "user/collect/detail";
		user.collect_add = server_url + "user/collect/add_goods";
		user.collect_remove = server_url + "user/collect/remove_goods";

		//针对用户·邀请注册的店铺
		user.invited_user_list = server_url + "user/invited/list";

		//针对用户·收藏商家的API
		user.collectBus = server_url + "user/collect_bus";
		user.collectBus_detail = server_url + "user/collect_bus";
		user.collectBus_with_goods_info = server_url + "user/collect_bus/with_goods_info";
		user.collectBus_with_page_info = server_url + "user/collect_bus/with_page_info";
		user.collectBus_add = server_url + "user/collect_bus/add_bus";
		user.collectBus_remove = server_url + "user/collect_bus/remove_bus";

		//针对用户·优惠券
		user.ticket_list = server_url + "user/ticket/list";
		user.ticket_list_for_ach = server_url + "user/ticket/list/for_ach_id/";
		user.ticket_by_id = server_url + "user/ticket/by_id/";
		user.ticket_add_from_factory = server_url + "user/ticket/add_ticket_from_ticket_factory/";

		//针对用户·会员卡
		user.card_list = server_url + "user/card/list";
		user.card_list_by_bus_id = server_url + "user/card/list/by_bus_id/";
		user.card_by_id = server_url + "user/card/by_id/";
		user.card_goods_list_with_page_info = server_url + "user/card/goods_list_with_page_info";
		user.card_add_from_factory = server_url + "user/card/add_card_from_card_factory/";

		//针对用户·商品二进制的API
		var user_bina = user.bina = {};
		var user_bina_server_url = server_url + "user/bina/";
		user_bina.all = user_bina_server_url + "all";
		user_bina.by_bus_id = user_bina_server_url + "by_bus_id";
		user_bina.first_acc_users = user_bina_server_url + "first_acc_users/";
		user_bina.未申请兑换_to_申请兑换中 = user_bina_server_url + "未申请兑换_to_申请兑换中"
		user_bina.商家已付款_to_用户确认付款 = user_bina_server_url + "商家已付款_to_用户确认付款";
		user_bina.bina_to_BusUser_money = user_bina_server_url + "to_bususer_money";

		//针对商品的API-URL
		var goods = appConfig.goods || (appConfig.goods = {});
		goods.byId = server_url + "goods/byId/";
		goods.byIds = server_url + "goods/byIds";
		goods.list = server_url + "goods/list";
		goods.list_with_page_info = server_url + "goods/list/with_page_info";
		goods.list_with_page_info_and_end_pay_cb_url = server_url + "goods/list/with_page_info_and_end_pay_cb_url";
		goods.list_random = server_url + "goods/list/random";
		goods.quality_list = server_url + "goods/list/quality";
		goods.number = server_url + "goods/list/num";
		goods.detail = server_url + "goods/byId/";
		goods.evaluation = server_url + "goods/eval/"
		goods.search = server_url + "goods/search";
		goods.search_with_page_info = server_url + "goods/search/with_page_info";

		//针对标签的API-URL
		var tag = appConfig.tag || (appConfig.tag = {});
		tag.list = server_url + "tag";
		tag.list_detail = server_url + "tag/detail";
		tag.list_detail_by_id = server_url + "tag/detail/by_tag_id";

		//针对会员卡商品专区
		var card_factory = appConfig.card_factory || (appConfig.card_factory = {});
		card_factory.list = server_url + "card_factory/list";
		card_factory.by_id = server_url + "card_factory/by_id/";
		card_factory.goods_list_with_page_info = server_url + "card_factory/goods_list_with_page_info/";
		card_factory.goods_list_with_page_info_for_user = server_url + "card_factory/goods_list_with_page_info_for_user/"

		//针对商家
		var bus = appConfig.bus || (appConfig.bus = {});
		bus.loginer = server_url + "bus";
		bus.login = server_url + "bus/login";
		bus.loginout = server_url + "bus/loginout";
		bus.achs = server_url + "bus/achs";
		bus.find_achs = server_url + "bus/achs/find";
		bus.change_password = server_url + "bus/password";
		bus.change_mobile_phone = server_url + "bus/mobile_phone";
		bus.set_baidu_lbs = server_url + "bus/lbs";
		bus.update_code = server_url + "bus/updateCode";

		// bus.achs_未付款 = server_url + "bus/achs/WeiFuKuan";
		// bus.achs_未发货 = server_url + "bus/achs/WeiFaHuo";
		bus.achs_with_type_and_page_info = server_url + "bus/achs/with_type_and_page_info"
		bus.achs_detail = server_url + "bus/achs/detail";
		bus.achs_with_page_info = server_url + "bus/achs/with_page_info";
		bus.evaluation = server_url + "bus/eval";
		bus.evaluation_with_page_info = server_url + "bus/eval/with_page_info";
		bus.set_info_url = server_url + "bus/info";
		bus.set_config_url = server_url + "bus/config";
		//商家·订单操作
		bus.achs_ol未发货_to_ol未收货 = server_url + "bus/achs/status/ol未发货_to_ol未收货/";
		bus.achs_未发货_to_已发货 = server_url + "bus/achs/status/未发货_to_已发货/";
		bus.achs_未收货未付款_to_交易完成 = server_url + "bus/achs/status/未收货未付款_to_交易完成/";
		bus.achs_face未付款_to_face交易完成 = server_url + "bus/achs/status/face未付款_to_face交易完成/";
		bus.achs_custom_cash = server_url + "bus/achs/custom_cash/"
		bus.achs_hidden_ach = server_url + "bus/achs/hidden_ach/";

		//商家·运费模板
		bus.express_list = server_url + "bus/express/list";
		bus.express_add = server_url + "bus/express/add_express";
		bus.express_update = server_url + "bus/express/update_express/";
		bus.express_remove = server_url + "bus/express/remove_express/";

		//商家·统计
		bus.statistical_ach_by_date = server_url + "bus/statistical/ach_by_date";

		//商家·商品
		bus.post_goods = server_url + "bus/goods";
		bus.put_goods = server_url + "bus/goods";
		bus.remove_goods = server_url + "bus/goods";
		bus.update_goods_index = server_url + "bus/goods/index";
		bus.remove_goods_from_un_sold_goods = server_url + "bus/goods/remove_goods_from_un_sold_goods";
		bus.add_goods_to_un_sold_goods = server_url + "bus/goods/add_goods_to_un_sold_goods";

		//用户参与推广的积分回馈
		bus.user_bind = server_url + "bus/user_bind";
		user.bus_bind = server_url + "user/bus_bind";
		user.bus_bind_by_id = server_url + "user/bus_bind/by_bus_id";
		user.guide_list = server_url + "user/guide";

		bus.recommend_buff = server_url + "bus/user_bind/recommend_buff";
		//设置消费额与积分的比值与及打折额度
		bus.cash_to_acc = server_url + "bus/user_bind/cash_to_acc/set/discount";

		//商家·商家用户
		bus.bus_user = server_url + "bus/bus_user";
		bus.bus_user_state_申请兑换中_to_商家已经打款 = server_url + "bus/bus_user/state/申请兑换中_to_商家已经打款"

		//商家·标签
		bus.tags = server_url + "bus/tag";
		bus.tags_detail = server_url + "bus/tag/detail";
		bus.tags_detail_by_id = server_url + "bus/tag/detail/by_tag_id";
		bus.add_tag = server_url + "bus/tag";
		bus.remove_tag = server_url + "bus/tag";
		bus.update_tag_index = server_url + "bus/tag/update_tag_index";
		bus.remove_goods_from_tag = server_url + "bus/tag/remove_goods";
		bus.add_goods_to_tag = server_url + "bus/tag/add_goods";
		bus.rename_tag = server_url + "bus/tag/rename";

		//商家·分类
		bus.classify_tree = server_url + "bus/classify/tree/";
		bus.classify_by_id = server_url + "bus/classify/by_id/";
		bus.classify_add = server_url + "bus/classify/add_classify/";
		bus.classify_update = server_url + "bus/classify/update_classify/";
		bus.classify_enable_buff = server_url + "bus/classify/enable_classify_buff/";
		bus.classify_disable_buff = server_url + "bus/classify/disable_classify_buff/";
		bus.classify_remove_list = server_url + "bus/classify/remove_classify_list";
		bus.classify_move_goods_list_to_classify = server_url + "bus/classify/move_goods_to_classify/";
		bus.classify_update_index = server_url + "bus/classify/classify_update_index/";
		bus.classify_goods_update_index = server_url + "bus/classify/classify_goods_update_index/";
		//商家·会员卡·分类
		var card_factory_classify = bus.c_f_c = {};
		card_factory_classify.classify_tree = server_url + "bus/card_factory/:card_factory_id/classify/tree/";
		card_factory_classify.classify_by_id = server_url + "bus/card_factory/:card_factory_id/classify/by_id/";
		card_factory_classify.classify_add = server_url + "bus/card_factory/:card_factory_id/classify/add_classify/";
		card_factory_classify.classify_update = server_url + "bus/card_factory/:card_factory_id/classify/update_classify/";

		card_factory_classify.classify_enable_buff = server_url + "bus/card_factory/:card_factory_id/classify/enable_classify_buff/";
		card_factory_classify.classify_disable_buff = server_url + "bus/card_factory/:card_factory_id/classify/disable_classify_buff/";

		card_factory_classify.classify_remove_list = server_url + "bus/card_factory/:card_factory_id/classify/remove_classify_list";
		card_factory_classify.classify_move_goods_list_to_classify = server_url + "bus/card_factory/:card_factory_id/classify/move_goods_to_classify/";

		card_factory_classify.classify_update_index = server_url + "bus/card_factory/:card_factory_id/classify/classify_update_index/";
		card_factory_classify.classify_goods_update_index = server_url + "bus/card_factory/:card_factory_id/classify/classify_goods_update_index/";

		//商家·店铺关联
		bus.assshop_list = server_url + "bus/assshop/list";
		bus.require_assshop_list = server_url + "bus/assshop/require_list";
		bus.add_assshop = server_url + "bus/assshop/add_assshop";
		bus.remove_assshop = server_url + "bus/assshop/remove_assshop/";
		bus.require_assshop = server_url + "bus/assshop/require_vcode";

		//商家·空间
		bus.space_list = server_url + "bus/space/list";
		bus.space_list_by_type = server_url + "bus/space/list/by_type";
		bus.space_list_by_use_state = server_url + "bus/space/list/by_use_state";
		bus.add_space = server_url + "bus/space/add_space";
		bus.update_space = server_url + "bus/space/update_space/";
		bus.remove_space = server_url + "bus/space/remove_space/";

		//商家·子账号
		bus.employees_list = server_url + "bus/employees/list";
		bus.add_employees = server_url + "bus/employees/add_employees";
		bus.update_employees = server_url + "bus/employees/update_employees/";
		bus.remove_employees = server_url + "bus/employees/remove_employees/"

		//针对空间
		var space = appConfig.space || (appConfig.space = {});
		space.list = server_url + "bus/space/list/";
		space.list_by_type = server_url + "bus/space/list/by_type/";
		space.list_by_use_state = server_url + "bus/space/list/by_use_state/";

		//商家·信息群发
		bus.sendmsg_user_list = server_url + "bus/sendmsg/user_list";
		bus.sendmsg_send_mail = server_url + "bus/sendmsg/send_mail";

		//商家·评价评论
		bus.add_comment = server_url + "bus/eval/as_comment";


		//推荐积分的兑现设置
		bus.recommend_config = server_url + "bus/recommend_config";
		bus.recommend_discount = server_url + 'bus/recommend_config/discount';
		bus.update_recommend_config = server_url + "bus/recommend_config";
		bus.update_recommend_discount = server_url + "bus/recommend_config/discount";
		bus.disable_recommend_discount = server_url + "bus/recommend_config/discount";

		//导购链接的配置
		bus.guide_config = server_url + "bus/guide/config";
		bus.update_guide_config = server_url + "bus/guide/config";
		bus.guide_list = server_url + "bus/guide/list";
		bus.guide_url = server_url + "bus/guide/url";
		bus.guide_add = server_url + "bus/guide/add_guide";
		bus.guide_remove = server_url + "bus/guide/remove_guide";

		//优惠码
		bus.coupon_list = server_url + "bus/coupon/list";
		bus.coupon_add = server_url + "bus/coupon/new";
		bus.coupon_remove = server_url + "bus/coupon/remove/";

		//优惠券
		bus.ticket_factory_list = server_url + "bus/ticket_factory/list";
		bus.ticket_factory_by_id = server_url + "bus/ticket_factory/by_id/";
		bus.ticket_factory_add = server_url + "bus/ticket_factory/add_ticket_factory";
		bus.ticket_factory_remove = server_url + "bus/ticket_factory/remove_ticket_factory/";

		//会员卡与会员专区商品
		bus.card_factory_list = server_url + "bus/card_factory/list"
		bus.card_factory_add = server_url + "bus/card_factory/add_card_factory"
		bus.card_factory_update = server_url + "bus/card_factory/update_card_factory/"
		bus.card_factory_remove = server_url + "bus/card_factory/remove_card_factory/"
		bus.card_factory_goods_list_with_page_info = server_url + "bus/card_factory/goods_list_with_page_info/"
		bus.card_factory_add_goods = server_url + "bus/card_factory/add_goods_to_card_factory/"
		bus.card_factory_update_goods = server_url + "bus/card_factory/update_goods_from_card_factory/"
		bus.card_factory_update_goods_index = server_url + "bus/card_factory/update_goods_index_from_card_factory/"
		bus.card_factory_remove_goods = server_url + "bus/card_factory/remove_goods_from_card_factory/"

		//商品属性表
		bus.goods_args_map_list = server_url + "bus/goods_args_map/list"
		bus.goods_args_map_add = server_url + "bus/goods_args_map/add_goods_args_map"
		bus.goods_args_map_update = server_url + "bus/goods_args_map/update_goods_args_map/"
		bus.goods_args_map_remove = server_url + "bus/goods_args_map/remove_goods_args_map/"

		//访客记录
		bus.visitor_info = server_url + "visitorInfo";
		bus.visitor_statistical = server_url + "visitorInfo/statistical";
		bus.ip = server_url + "visitorInfo/ip/";

		//会员列表
		bus.viplist = server_url + "bus/vips/list";

		//支付回调
		var bus_extend = bus.extend = {};
		var extend_url = server_url + "bus/extend/";
		bus_extend.goods_end_pay_cb_url = extend_url + "goods/end_pay/cb_url";
		bus_extend.invite_bus_list = extend_url + "invite/bus_list";
		//商品二进制
		bus_extend.bina = {};
		bus_extend.bina.get_user_list_of_bina = extend_url + "bina/user_list/byId/";
		bus_extend.bina.get_bina_list_of_user = extend_url + "bina/bina_list/byId/";
		bus_extend.bina.goods = extend_url + "bina/goods";
		bus_extend.bina.user = extend_url + "bina/user";
		bus_extend.bina.config = extend_url + "bina/config";
		bus_extend.bina.add_user_to_bina = extend_url + "bina/add_user/";
		bus_extend.bina.add_user_to_bina_list = extend_url + "bina/add_user_to_bina_list";
		bus_extend.bina.add_user_to_forever_bina_user_list = extend_url + "bina/add_user_to_forever_bina_user_list";
		bus_extend.bina.add_user_to_senior_bina_user_list = extend_url + "bina/add_user_to_senior_bina_user_list";

		bus_extend.bina.申请兑换中_to_商家已付款 = extend_url + "bina/申请兑换中_to_商家已付款";
		bus_extend.bina.set_goods_custom_bina = extend_url + "bina/goods_custom_bina/";
		bus_extend.bina.remove_goods_custom_bina = extend_url + "bina/remove_goods_custom_bina/";
		bus_extend.bina.remove_user_form_forever_bina_user_list = extend_url + "bina/remove_user_form_forever_bina_user_list";
		bus_extend.bina.remove_user_form_senior_bina_user_list = extend_url + "bina/remove_user_form_senior_bina_user_list";

		bus_extend.bina.lock_user = extend_url + "bina/lock_user";
		bus_extend.bina.unlock_user = extend_url + "bina/unlock_user";
		//抽奖
		bus_extend.lottery = {};
		bus_extend.lottery.get_lottery_with_winner_list_info_by_id = extend_url + "lottery/with_winner_list_info/by_id/";
		bus_extend.lottery.add_lottery = extend_url + "lottery/add_lottery";
		bus_extend.lottery.update_lottery = extend_url + "lottery/update_lottery/";
		bus_extend.lottery.remove_lottery = extend_url + "lottery/remove_lottery/";


		//推荐积分兑现的一些配置
		//未申请兑换 =》 申请兑换中
		user.res_weishenqingduihuan_to_shenqingduihuanzhong = server_url + "user/bus_bind/state/weishenqingduihuan_to_shenqingduihuanzhong";
		//申请兑换中 =》 商家已付款
		bus.res_shenqingduihuanzhong_to_shangjiayijingfukuan = server_url + "bus/user_bind/state/shenqingduihuanzhong_to_shangjiayijingfukuan";
		//商家已付款 =》 用户确认付款
		user.res_shangjiayijingfukuan_to_yonghuquerenfukuan = server_url + "user/bus_bind/state/shangjiayijingfukuan_to_yonghuquerenfukuan";
		user.acc_to_BusUser_money = server_url + "user/bus_bind/to_bususer_money";

		//导购链接兑现的一些配置
		//未申请兑换 =》 申请兑换中
		user.guide_weishenqingduihuan_to_shenqingduihuanzhong = server_url + "user/guide/state/weishenqingduihuan_to_shenqingduihuanzhong";
		//申请兑换中 =》 商家已付款
		bus.guide_shenqingduihuanzhong_to_shangjiayijingfukuan = server_url + "bus/guide/state/shenqingduihuanzhong_to_shangjiayijingfukuan";
		//商家已付款 =》 用户确认付款
		user.guide_shangjiayijingfukuan_to_yonghuquerenfukuan = server_url + "user/guide/state/shangjiayijingfukuan_to_yonghuquerenfukuan";

		//用户·商家用户
		user.bus_user = server_url + "user/bus_user";
		user.bus_user_by_bus_id = server_url + "user/bus_user/by_bus_id";
		user.bus_user_state_未申请兑换_to_申请兑换中 = server_url + "user/bus_user/state/未申请兑换_to_申请兑换中"
		user.bus_user_state_申请兑换中_to_未申请兑换 = server_url + "user/bus_user/state/申请兑换中_to_未申请兑换"
		user.bus_user_state_商家已经打款_to_用户确认收款 = server_url + "user/bus_user/state/商家已经打款_to_用户确认收款"

		//用户·抽奖
		user.lottery_detail_list = server_url + "user/lottery/list/detail";
		user.lottery_draw = server_url + "user/lottery/draw/";

		//阿里交易
		var alipay = appConfig.alipay || (appConfig.alipay = {});
		alipay.create_direct_pay_by_user = server_url + "alipay/create_direct_pay_by_user";
		alipay.create_direct_pay_by_user_form_ach_id = server_url + "alipay/create_direct_pay_by_user_form_ach_id/";
		alipay.mobile_securitypay_pay_form_ach_id = server_url + "alipay/mobile_securitypay_pay_form_ach_id/";
		alipay.wap_trade_create_direct = server_url + "alipay/wap_trade_create_direct";
		alipay.wap_trade_create_direct_form_ach_id = server_url + "alipay/wap_trade_create_direct_form_ach_id/";
		alipay.create_direct_bankpay_by_user = server_url + "alipay/create_direct_bankpay_by_user";
		alipay.refund_fastpay_by_platform_pwd = server_url + "alipay/refund_fastpay_by_platform_pwd";
		alipay.create_partner_trade_by_buyer = server_url + "alipay/create_partner_trade_by_buyer";
		alipay.send_goods_confirm_by_platform = server_url + "alipay/send_goods_confirm_by_platform";
		alipay.trade_create_by_buyer = server_url + "alipay/trade_create_by_buyer";

		//财付通交易
		var tenpay = appConfig.tenpay || (appConfig.tenpay = {});
		tenpay.create_direct_pay_by_user = server_url + "tenpay/create_direct_pay_by_user";

		//微信支付
		var wx = appConfig.wx || (appConfig.wx = {});
		wx.get_ach_url_code = server_url + "wx/get_ach_url_code/";
		wx.js_unified_order = server_url + "wx/js/unified_order";
		wx.get_app_UnifiedOrder = server_url + "wx/get_app_UnifiedOrder/";

		var ach_status = appConfig.ACH_STATE = {
			"未确认": -1,
			//在线付款，旧版，不再使用
			"未付款": 0,
			"已付款": 1,
			"运货中": 2,
			"确认收货": 3,
			"未评价": 4,
			"已经评价": 5,
			//在线支付
			"ol未付款": 11,
			"ol未发货": 12,
			"ol未收货": 13,
			"ol交易完成": 14,
			"ol已评价": 15,
			//货到付款
			"未发货": 20,
			"已发货": 21,
			"未收货未付款": 22, //货物已经送达，等待用户接货并付款
			"交易完成": 23,
			"已评价": 24,
			//当面付款
			"face未付款": 30,
			"face交易完成": 31, //确认付款，用户无需任何操作即可完成
			"face已评价": 32
		};
		appConfig.PAY_METHOD = {
			"担保交易": "partner_trade_by_buyer", //默认交易方式
			// "即时到账":"direct_pay_by_user",
			"货到付款": "payment_in_cash",
			"财付通担保交易": "partner_tenpay",
			"支付宝网页支付": "alipay.wap.auth.authAndExecute",
			"微信支付": "weixin_pay",
			"当面付款": "face_pay",
		};
		appConfig.bus_user_bind_status = {
			"weishenqingduihuan": 0,
			"shenqingduihuanzhong": 1,
			"shangjiayijingfukuan": 2,
			"yonghuquerenshoukuan": 3
		};

		appConfig.guide_status = {
			"weishenqingduihuan": 0,
			"shenqingduihuanzhong": 1,
			"shangjiayijingfukuan": 2,
			"yonghuquerenshoukuan": 3
		};
		appConfig.BUS_USER_STATE = {
			"未申请兑换": 0,
			"申请兑换中": 1,
			"商家已经打款": 2,
			"用户确认收款": 3 //money_total+apply_money && state = 未申请兑换
		};
		appConfig.BINA_STATE = {
			"未申请兑换": 0,
			"申请兑换中": 1,
			"商家已付款": 2,
			"用户确认收款": 0 //==未申请兑换
		};
		appConfig.SPACE_TYPE = {
			"座号": 10,
			"桌号": 11,
			"房间号": 12,
			"楼层": 13
		};
		appConfig.SPACE_USE_STATE = {
			"可用": 21,
			"已预约": 22,
			"正在使用": 23,
			"不可用": 24
		};
		appConfig.TICKET_FACTORY_TYPE = {
			打折: 1,
			满减: 2,
			现金抵用: 3
		};
		appConfig.CARD_FACTORY_TYPE = {
			打折: 1,
			满减: 2,
			现金抵用: 3
		};
		appConfig.CARD_STATE = require("../../../core/card/_con").STATE;
		appConfig.TICKET_STATE = {
			未使用: 1,
			已使用: 2,
			已过期: 3
		};
		appConfig.GOODS_ARGS_MAP_TYPE = {
			文字: "text",
			颜色: "color",
			图片: "image",
		};
		appConfig.CLASSIFY_TYPE = {
			无: 0, //同null，如果启用BUFF，但无type，代表继承
			打折: 1,
			满减: 2,
			现金抵用: 3
		};

		var BusLotteryCon = require("../../../core/bus.lottery/_con");
		appConfig.LOTTERY_TYPE = BusLotteryCon.TYPE;
		appConfig.LOTTERY_STATE = BusLotteryCon.STATE;
		return appConfig;
	};
	var AppConfigPub = require("./config.public.template");

}());
